//
//  NSString+Helper.h
//  TakeBus
//
//  Created by cqck on 2017/8/7.
//  Copyright © 2017年 cqck-zzh. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (Helper)

///验证是否是手机号码
- (BOOL)isPhoneNumber;

///是否是电子邮箱地址
- (BOOL)isEmailAddress;

///是否是身份证号
- (BOOL)isIdentityCard;

///银行卡号检查
- (BOOL)isBankCard;

///汉字转化拼音
- (NSString *)transformToPinyin;

- (NSString *)verticalString;

- (BOOL)isEmptyString;

- (BOOL)judgeIdentityStringValid;

- (NSString *)sha1String;

- (NSString *)base64EncodedString;

- (NSString *)md5String;

+ (BOOL)isBlankString:(NSString *)aStr;

+ (NSString *)getDeviceName;

+ (NSString *)formatDate:(NSDate *)date format:(NSString *)format;

+ (NSString *)formateDate:(NSString *)dateString withFormate:(NSString *)formate;

+ (NSString *)emptyString:(NSString *)orginStr;

@end
